﻿function GetJsonRowByID(tableName, id, idField, fields, callBack) {
    var result = "";
    var postData = "{tableName:'" + tableName + "',id:'" + id + "',idField:'" + idField + "',fields:'" + fields + "'}";
    var url = vRoot + "Services/WebService.asmx/GetJsonRowByID";
    $.ajax({
        url: url,
        type: "POST",
        data: postData,
        contentType: "application/json; charset=UTF-8",
        dataType: "json",
        async: true,
        success: function (data) {
            result = data.d;
            if (result != '')
                callBack(JSON.parse(data.d));
        },
        error: function (f) {
            result = "";
        }
    });
    return result;
}